﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 战棋模拟器
{
    class 灵魂杂耍者:Minion
    {

        public 灵魂杂耍者():base()
        {
            damage = 3;
            Star = 3;
            Attack = 3;
            Health = 3;
        }


        public override void OnDie(Minion m)
        {
            if (m.Race != race.devil)
                return;
            if (pool.next.TrueCount() <= 0)
                return;
            Minion victim = pool.next.RandomMinion();
            if (pool.board.Debug)
            {
                Console.WriteLine("触发了{3}的技能，对{0}方第{1}个随从造成了{2}点伤害", pool.direction ? "下" : "上", victim.Place, damage,Name);
                pool.board.Showboard();
            }
            victim.Getdamaged(damage);
        }


        public override Minion NewOne()
        {
            return new 灵魂杂耍者();
        }
    }


    class 灵魂杂耍者_金色 : 灵魂杂耍者
    {
        public 灵魂杂耍者_金色() : base()
        {
            Attack *= 2;
            Health *= 2;
            count *= 2;
            buff *= 2;
        }

        public override void OnDie(Minion m)
        {
            base.OnDie(m);
            base.OnDie(m);
        }


        public override Minion NewOne()
        {
            return new 灵魂杂耍者_金色();
        }
    }
}
